package com.ygsj.Utils;


import android.app.Activity;
import android.content.Context;

import com.google.gson.Gson;


import okhttp3.OkHttpClient;


/**
 * Created by Administrator on 2016/8/3.
 */
public class Singleton {
    private static OkHttpClient client = null;
    private static Gson gson = null;
    private Singleton() {
    }

    public static OkHttpClient getOkhttpInstance() {
        if (client == null) {
            client = new OkHttpClient();
        }
        return client;
    }


    public static Gson getGsonIntance(){
        if (gson == null) {
            gson = new Gson();
        }
        return  gson;
    }

}
